RTC: use offset to caculate rtc clock
authorYang Zhang <yang.z.zhang@Intel.com>
Wed, 7 Mar 2012 07:34:20 +0000 (07:34 +0000)
committerYang Zhang <yang.z.zhang@Intel.com>
Wed, 7 Mar 2012 07:34:20 +0000 (07:34 +0000)
commit59731fe0c5f6d9c98aff5894584e6ade1cc4762e
tree9e4cef351985c509e9dad5c0e573907bd659d2ef
parent92ba85ec925abeb25b7176d4963b3d7d4126e898
RTC: use offset to caculate rtc clock

There has no need to run two periodic timer to update RTC time.
Use the offset instead.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/rtc.c
xen/include/asm-x86/hvm/vpt.h